//
//  KDWeekView.h
//  KDCalendarControl
//
//  Created by Keith Duncan on 28/06/2007.
//  Copyright 2007 thirty-three. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class KDWeekCell;

@protocol KDWeekViewDataSource;

@interface KDWeekControl : NSControl {
	NSEvent *initialEvent;
	id <KDWeekViewDataSource> datasource;
	
	BOOL _dragged;
	BOOL _initialDragState;
}

@property (readonly) KDWeekCell *cell;

- (void)reloadData;

@property (assign) IBOutlet id <KDWeekViewDataSource> datasource;

@end

@protocol KDWeekViewDataSource <NSObject>
- (BOOL)weekview:(KDWeekControl *)view isEnabledForDay:(AFWeekday)day;
- (void)weekview:(KDWeekControl *)view setEnabled:(BOOL)enabled forDay:(AFWeekday)day;
@end
